class HttpException extends Error {
  constructor(
    code = 10003,
    message = "服务器异常，请联系管理员wx: TheHelloWorld",
    data = null,
    httpCode = 200
  ) {   
    super();
    this.code = code; // 自定义状态码
    this.message = message; // 自定义返回消息
    this.data = data; // 自定义返回数据
    this.httpCode = httpCode; // http状态码
  }
}
module.exports = HttpException;
